package com.zwb.aiwebsite.common;

/**
 * 响应结果码
 *
 * @author 2825075112@qq.com
 */
public enum ResultCode {
    OK(0, "ok"),
    FAIL(-1, "fail"),
    SERVER_ERROR(500, "服务器内部错误"),
    ;
    /**
     * 状态码
     */
    private final int code;

    /**
     * 状态信息
     */
    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
